// 开发环境
const path = require('path');
const {merge} = require('webpack-merge');
const common = require('./webpackcommon.config.js');
console.log('dev开发环境启动了')
module.exports = merge(common, {
    devtool: 'inline-source-map',
    devServer: {
        static: {
            directory: path.join(__dirname, 'dist'),
        },
        // gzip压缩
        compress: true, 
        //端口号
        port: 9000,
        //自动打开浏览器
        open: true, 
    },
});
